<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>我的商品~</title>
</head>
<body>
<h1>
    <label style="color:red" th:text="${session.dealMsg}"></label><br>
</h1>
<thead>
<tr>
    <th>#</th>
    <th>订单编号</th>
    <th>商品名称</th>
</tr>
<br>
</thead>
<tbody>
<tr  th:each="deal,stat:${deals.records}">
    <td th:text="${stat.count}"></td>
    <td th:text="${deal.dealId}"></td>
    <td th:text="${deal.goodName}"></td>
    <br>
</tr>
<br>
</tbody>
当前第[[${deals.current}]]页  总计 [[${deals.pages}]]页  共[[${deals.total}]]条记录
<ul>
    <li ><a th:href="@{/lookDeals(pn=${deals.current}-1)}">← 前一页</a></li>
    <!--                            如果当前页==当前num则添加样式-->
    <li  th:each="num:${#numbers.sequence(1,deals.pages)}" >
        <a th:href="@{/lookDeals(pn=${num})}">[[${num}]]</a>
    </li>
    <li ><a th:href="@{/lookDeals(pn=${deals.current}+1)}" >下一页 → </a></li>
</ul><br>
<a  th:href="@{/common/goIndex}">
    返回首页
</a >
</body>
</html>